<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
    <!-- 全屏 -->
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <!-- 上方栏显示 -->
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <!-- 不自动识别号码 -->
    <meta name="format-detection" content="telephone=no">
    <!-- Include js plugin -->
    <title>视频课详情</title>
    <link rel="stylesheet" href="/static/wap/skin/css/layout.css">
    <link rel="stylesheet" href="/static/wap/skin/css/demos.css">


	<script src="/static/wap/weui/js/jquery.min.js"></script>
</head>
<script>
var iframe_index;
$(function () {
  $("#buy_now").click(function(){
    is_login = <{$logged_in}>;
    if(is_login > 0){
        $("#buy_form").submit();
    }else{
      alert("你还没登录，请先登录！");
      window.location.href="/logreg";
      //login/iframe
      //  iframe_index = layer.open({
      //  type: 2,
      //  area: ['500px', '400px'],
      //  fixed: false, //不固定
      //  maxmin: false,
      //  shadeClose: true,
      //  title: '登录',
      //  content: ['/login/iframe', 'no']
    //  });

    }
  });

})

function login_success(){
  parent.layer.close(iframe_index);
  window.location.href=window.location.href;
  window.location.reload;
}
</script>
<body>
<header class="brB">
	<div class="h_top">
    	<div class="hLeft"><a href="/video" class="icoH icoReturn mt20"></a></div>
    	<div class="hCenter"><span class="tit c-3ac9af">视频课详情</span></div>
    	<div class="hRight"><a href="javascript:;" class="icoH icoShare mt20"></a></div>
    </div>
</header>
<div class="warp">
    <div class="product_details">
        <div class="ith_img2">
            <img src="<{$info.course_img}>">
        </div>
    </div>
    <div class="fix b-FFFFFF p20 LH50 brB">
        <div class="layout-box">
            <div class="box-col fwb"><{$info.title}></div>
            <div class="LH20 pl25 c-666666"><i class="icoH icoShare2"></i><span class="pl20">分享</span></div>
        </div>
        <ul class="vd_listXQ line-bottom2 ptb20">
            <li>
                <div class="layout-box">
                    <div class="item">
                        <label class="fs20">价格</label><div class="c-FF0000 ">¥<{if $info.school_id == 0}><{$info.fx_price}><{else}><{$info.price}><{/if}></div>
                    </div>

                </div>
            </li>
        </ul>
        <ul class="vd_listXQ line-bottom2 ptb20">
            <li>
                <div class="layout-box">
                    <div class="item">
                        <label class="fs20">主讲老师</label><div class="fs28"><{if $info.school_id == 0}><{$info.teacher_name}><{else}><{$info.school_teacher_name}><{/if}></div>
                    </div>

                </div>
            </li>
        </ul>
        <ul class="vd_listXQ line-bottom2 ptb20">
            <li>
                <div class="layout-box">
                    <div class="item">
                        <label class="fs20">总课时</label><div class="fs28"><{$info.course_time}>课时</div>
                    </div>

                </div>
            </li>
        </ul>
        <ul class="vd_listXQ line-bottom2 ptb20">
            <li>
                <div class="layout-box">
                    <div class="item">
                        <label class="fs20">有效期限</label><div class="fs28"><{$info.effective_time}></div>
                    </div>

                </div>
            </li>
        </ul>
        <ul class="vd_listXQ line-bottom2 ptb20">

            <li>
                <div class="layout-box">
                    <div class="item">
                        <label class="fs20">适合人群</label><div class="fs28"><{$info['suitable']}></div>
                    </div>

                </div>
            </li>

        </ul>
        <!-- <ul class="vd_listXQ line-bottom2 ptb20">
            <li>
                <div class="layout-box">
                    <div class="item">
                        <label class="fs20">学到什么</label><div class="fs28"><{$info['learn_what']}></div>
                    </div>

                </div>
            </li>
        </ul> -->
        <ul class="vd_listXQ line-bottom2 ptb20">
            <li>
                <div class="layout-box">
                    <div class="item">
                        <label class="fs20">课程收益</label><div class="fs28"><{$info['learn_what']}></div>
                    </div>

                </div>
            </li>
        </ul>
        <!-- <div class="LH60 pt10">
        	<div class="c-999999"><span class="mr30"><{if $info.comment_count == 0}>100%<{else}><{(($info.star4+$info.star5)/$info.comment_count*100)|string_format:'%.0f'}>%<{/if}>满意度</span><span><{$info.click_num}> 次学习</span></div>
        </div> -->
    </div>

    <div class="fix b-FFFFFF public-tab">
    	<div class="mt layout-box tac LH80 oh brB">
        	<!-- <div class="sp box-col"><span>课程介绍</span></div> -->
        	<div class="sp box-col"><span>课程详情</span></div>
        	<div class="sp box-col"><span>课程评价（<{$info.comment_count}>）</span></div>
        </div>
        <div class="mc">
        	<!-- <div class="tabItem" id="detailed">
				<div class="fix b-f4f4f4 LH50 oh">
    <div class="b-FFFFFF LH80 p20">
        <dl>
            <dd class="b-f4f4f4 LH40">
                <table class="tableForm">
                    <colgroup>
                    <col width="25%" />
                    <col width="75%" />
                    </colgroup>
                    <tbody>
                        <tr>
                            <td class="tac">适用人群</td>
                            <td><{$info.suitable}></td>
                        </tr>
                        <tr>
                            <td class="tac">教学老师</td>
                            <td>
                                <dl class="layout-box">
                                    <dt class="">
                                        <span class="ith_img mr20" style="height:2.4rem; width:2.4rem; background-image:url(<{$info.header_img}>)"></span>
                                    </dt>
                                    <dd class="box-col">
                                        <p class="pt10"><{$info.teacher_name}></p>
                                        <p><{$info.intro}></p>
                                    </dd>
                                </dl>
                            </td>
                        </tr>
                        <tr>
                            <td class="tac">课程收益</td>
                            <td>
                                <{$info.earnings}>
                            </td>
                        </tr>
                        <tr>
                            <td class="tac">课程简介</td>
                            <td>
                                <p><{$info.detail}></p>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </dd>
        </dl>

    </div>
</div>
            </div> -->
        	<div class="tabItem" id="notice">
            <div class="LH100 tac">
            <{$info['detail']}>
            </div>
          </div>
        	<div class="tabItem" id="comment">
				<div class="fix p20 b-FFFFFF oh" id="list" style="height: 388px;">
				    <iframe name="myiframe" id="myiframe" width="100%" height="100%" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="/video/video_comment_list/<{$info.id}>"></iframe>
				</div>
            </div>
        </div>
    </div>

</div>
<!--star 底下购物按钮-->
<div class="p_fotbtn layout-box tac brT">
    <!-- <div class="box-col tac" style="line-height:1.2"><a href="javascript:;"><img style="width:1.5rem; margin:0 auto;" src="/static/wap/skin/img/ico_Star2.png"><p>收藏</p></a></div> -->
    <!-- <div class="box-col"><a class="b-ffa200 c-FFFFFF" href="#">加入购物车</a></div> -->
    <{if $is_buy == 1}>
    <div class="box-col"><a href="/video/play/<{$info.id}>" class="b-ff5a00 c-FFFFFF" >课程观看</a></div>
    <{else}>
	<form action="/order/buy_now" id="buy_form" method="post">
		<input type="hidden" name="course_id" value="<{$info.id}>" />
		<input type="hidden" name="num" value="1" />
	</form>
    <div class="box-col"><a href="javascript:;" class="b-ff5a00 c-FFFFFF" id="buy_now">立即购买</a></div>
    <{/if}>
</div>
<!--end 底下购物按钮-->
<!-- body 最后 -->
<!-- <script src="/static/wap/weui/js/jquery.min.js"></script> -->
<script src="/static/public/layer/layer.js"></script>
<script src="/static/wap/weui/js/jquery-weui.min.js"></script>
<script src="/static/wap/skin/js/demos.js"></script>
</body>
</html>
